<?php
require_once "common.php";
class certificate{
	private $username;
	private $password;
	private $shell;
	function __construct($username,$password,$shell){
		if(isset($username,$password)){
			$this->username=$username;
			$this->password=$password;
			$this->shell=$shell;
		}
	}
	function encode(){
		$shell=md5($this->username.$this->password.SHELL);
		return $shell;
	}
	function certif(){
		$ishell=$this->encode();
		if($ishell==$this->shell){
			return true;
		}
		return false;
	}

}
?>